
using UnityEngine;
using System.Collections;

public class Fire : MonoBehaviour {

	public Transform pos;
	public Rigidbody bullet;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		Rigidbody clone;
		clone = (Rigidbody)Instantiate(bullet, pos.position, pos.rotation);
		clone.velocity = transform.TransformDirection(Vector3.forward*100);
	}
}
